<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.knife.review.BlogReview"/>
<jsp:directive.page import="com.knife.tools.Config"/>
<jsp:directive.page import="com.knife.util.HtmlUtil"/>
<%
String pid="";
if(request.getParameter("pid")!=null){
pid=request.getParameter("pid").toString();
}
BlogReview br=new BlogReview();
Vector<BlogReview> brs= br.getListAll(" parentId='"+pid+"'","",5,1);
StringBuffer content=new StringBuffer();

content.append("<div id='Mainright' style='margin-top:10px;'>");
content.append("<div id='detail' class='text'>文章评论</div>");
for(int i=0;i<brs.size();i++){
BlogReview temp=brs.get(i);
content.append("<ul class='liuyanIndex' style='width: 640px'><li>评论人:"+temp.getInputUser()+"&nbsp;&nbsp;&nbsp;&nbsp;发表时间："+temp.getInputTime()+"</li>");
content.append("<li class='end'>"+HtmlUtil.getUBB2HTML(temp.getContent())+"</li></ul>");
}
content.append("</div>");
%>
<%=Config.Html2JS(content.toString()) %>
